package com.example.demo.exception

class BusinessException(var code: Int, override val message: String?) : RuntimeException() {
    constructor(code: Int) : this(code, null)
    constructor(errorCode: ErrorCode) : this(errorCode.code, errorCode.message)
    constructor(errorCode: ErrorCode, msg: String) : this(errorCode.code, msg)

}